﻿namespace EFS.RC.CC.CH.Entities
{
	public class Classification : EFS.Common.Serialization.ISerializable
	{
		public System.Int32? ID { get; set; }
		public System.String Name { get; set; }
		public System.String CustomerEndpointPhone { get; set; }
		public System.Int32? CustomerEndpointID { get; set; }

		/// Serialize
		public void Serialize(EFS.Common.Serialization.XmlWriter xmlWriter)
		{
			// write
			xmlWriter.Write("ID", ID);
			xmlWriter.Write("Name", Name);
			xmlWriter.Write("CustomerEndpointPhone", CustomerEndpointPhone);
			xmlWriter.Write("CustomerEndpointID", CustomerEndpointID);
		}

		/// Deserialize
		public void Deserialize(EFS.Common.Serialization.XmlReader xmlReader)
		{
			// read
			ID = xmlReader.ReadInt32("ID");
			Name = xmlReader.Read("Name");
			CustomerEndpointPhone = xmlReader.Read("CustomerEndpointPhone");
			CustomerEndpointID = xmlReader.ReadInt32("CustomerEndpointID");
		}

		/// <summary>
		/// To String 
		/// </summary>
		/// <returns></returns>
		public override System.String ToString()
		{
			return System.String.Format("{0} - {1}", CustomerEndpointPhone, Name);
		}
	}
}